//
//  STTableViewCell.m
//  CuiBoStore
//
//  Created by 崔博 on 16/12/7.
//  Copyright © 2016年 崔博. All rights reserved.
//

#import "STTableViewCell.h"

@interface STTableViewCell()
@property (weak, nonatomic) IBOutlet UIImageView *iconView;
@property (weak, nonatomic) IBOutlet UILabel *titleLable;
@property (weak, nonatomic) IBOutlet UILabel *contentLabel;
@property (weak, nonatomic) IBOutlet UILabel *orgLabel;
@property (weak, nonatomic) IBOutlet UILabel *benefitLabel;
@property (weak, nonatomic) IBOutlet UIImageView *countryImageView;

@end

@implementation STTableViewCell

- (void)awakeFromNib
{
    [super awakeFromNib];
    
}

#pragma mark - set
- (void)setSingleModel:(STSingleModel *)singleModel
{
    _singleModel = singleModel;
    [self.iconView downloadImage:singleModel.ImgView placeholder:nil];
    self.titleLable.text = singleModel.Title;
    self.contentLabel.text = singleModel.Abbreviation;
    self.orgLabel.text = singleModel.Price;
    self.benefitLabel.text = singleModel.DomesticPrice;
    [self.countryImageView downloadImage:singleModel.CountryImg placeholder:nil];
    [self.benefitLabel wl_changeStrikethroughStyleWithTextStrikethroughStyle:@1];
}
@end
